/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ControlEscolar.Validations;

import com.ControlEscolar.Beans.ExamRequest;
import com.ControlEscolar.DAOs.DAOException;
import com.ControlEscolar.DAOs.ExamRequestDAO;


/**
 *
 * @author Bere
 */
public class ValidationExamRequest extends BasicValidation{

  ExamRequestDAO examRequestDAO= new ExamRequestDAO();

  public boolean isExamRequestAccepted(long ID_Request) throws DAOException{
     ExamRequest  searchExamRequest=examRequestDAO.queryStatus(ID_Request);
        return isFound(searchExamRequest);
    }
 public boolean isExamRequestExist(long ID_Request) throws DAOException{
       ExamRequest searchExamRequest=examRequestDAO.queryByID(ID_Request);
        return isFound(searchExamRequest);
 }
}
